package com.crm.model.vo.performanceRankingManager;

import lombok.Data;

import java.math.BigDecimal;

/**
 * @ Author ：pym
 * @ Date   ：2021/8/27 13:40
 */
@Data
public class AnalysisOfProductProportionVO implements Comparable<AnalysisOfProductProportionVO> {

    private String productName;//产品名称

    private String typeSum;//分类计数

    private String sum;//共计计数

    private Double ratio;//占比

    @Override
    public int compareTo(AnalysisOfProductProportionVO o) {
        return this.ratio.compareTo(o.ratio);
    }

    public AnalysisOfProductProportionVO() {
    }

    public AnalysisOfProductProportionVO(String productName, String typeSum, String sum, Double ratio) {
        this.productName = productName;
        this.typeSum = typeSum;
        this.sum = sum;
        this.ratio = ratio;
    }
}
